package request

// 注册
type Registers struct {
	UserName string `form:"userName" json:"userName" xml:"userName"  binding:"required"`
	NickName string `form:"nickName" json:"nickName" xml:"nickName"  binding:"required"`
	Password string `form:"password" json:"password" xml:"password" binding:"required"`
	//Passwords string `form:"passwords" json:"passwords" xml:"passwords" binding:"required"`
}

// 登录
type Logins struct {
	UserName string `form:"userName" json:"userName" xml:"userName"  binding:"required"`
	Password string `form:"password" json:"password" xml:"password" binding:"required"`
	Terminal int    `form:"terminal" json:"terminal" xml:"terminal" binding:"required"`
}

// 修改密码
type Updates struct {
	OldPassword     string `form:"oldPassword" json:"oldPassword" xml:"oldPassword" binding:"required"`
	NewPassword     string `form:"newPassword" json:"newPassword" xml:"newPassword" binding:"required"`
	ConfirmPassword string `form:"confirmPassword" json:"confirmPassword" xml:"confirmPassword" binding:"required"`
}

// session
type LoginSession struct {
	UserId   int64 `json:"userId"`
	Terminal int   `json:"terminal"`
}

// 修改用户信息
type InfoUpdate struct {
	NickName       string `form:"nickName" json:"nickName" xml:"nickName"`
	Sex            int8   `form:"sex" json:"sex" xml:"sex"`
	SigNature      string `form:"signature" json:"signature" xml:"signature"`
	HeadImage      string `form:"headImage" json:"headImage" xml:"headImage"`
	HeadImageThumb string `form:"headImageThumb" json:"headImageThumb" xml:"headImageThumb"`
}
